package com.hisysteTopet.hisystepet.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hisysteTopet.hisystepet.bean.Pet;
import com.hisysteTopet.hisystepet.bean.ShopCart;

import java.util.Date;
import java.util.List;

public interface ShopCartService extends IService<ShopCart> {

    public void InsertShopCartMessage(String username, Integer petId, Integer lifeGoodsId,
                                      Date data,String classify,String url,
                                      String pet_name,String life_goods_name,Double money);
    public ShopCart SelectByUsernameAndPetId(String username,Integer PetId);

    public ShopCart SelectByUsernameAndLifeGoodsId(String username,Integer lifeGoodsId);

    public List<ShopCart> SelectAllShopCartByUsername(String username);

    public void DeleteshouCartMessageByIdAndClassifyToPet
            (Integer petId,String username,String classify);

    public void DeleteshouCartMessageByIdAndClassifyToPetLifeGoods
            (Integer lifeGoodsId,String username,String classify);
}
